﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Songhay.Tests
{
    using Songhay.Net;

    /// <summary>
    /// Summary description for RemoteResourceUtilityTest
    /// </summary>
    [TestClass]
    public class RemoteResourceUtilityTest
    {
        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext { get; set; }

        [TestMethod]
        public void ShouldListIISDirectory()
        {
            var list = RemoteResourceUtility.ListIISDirectory(new Uri("http://songhay7v/sites/references/samples/xaml/"));

            Assert.IsNotNull(list);
            list.ForEach(resource =>
            {
                this.TestContext.WriteLine(resource.ToString());
            });
        }
    }
}
